home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmssssppppaaaatttttttteeeerrrrnnnn((((3333GGGG)))) mmmmssssppppaaaatttttttteeeerrrrnnnn((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- mmmmssssppppaaaatttttttteeeerrrrnnnn - specifies a multisample sample pattern
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- vvvvooooiiiidddd mmmmssssppppaaaatttttttteeeerrrrnnnn((((lllloooonnnngggg ppppaaaatttttttteeeerrrrnnnn))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _p_a_t_t_e_r_n is one of several enumerated values:
-
- MMMMSSSSPPPP____DDDDEEEEFFFFAAAAUUUULLLLTTTT
- MMMMSSSSPPPP____2222PPPPAAAASSSSSSSS____0000
- MMMMSSSSPPPP____2222PPPPAAAASSSSSSSS____1111
- MMMMSSSSPPPP____4444PPPPAAAASSSSSSSS____0000
- MMMMSSSSPPPP____4444PPPPAAAASSSSSSSS____1111
- MMMMSSSSPPPP____4444PPPPAAAASSSSSSSS____2222
- MMMMSSSSPPPP____4444PPPPAAAASSSSSSSS____3333
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- By default multisample samples are located in a cluster surrounding each
- pixel center. The default locations are chosen to produce an optimal
- result in a single rendering pass. Higher image quality can be achieved,
- however, if multiple multisample images are composed using the
- accumulation buffer. To do this effectively, a different sample pattern
- must be used for each rendering pass. mmmmssssppppaaaatttttttteeeerrrrnnnn allows these different
- patterns to be specified.
-
- Patterns MMMMSSSSPPPP____2222PPPPAAAASSSSSSSS____0000 and MMMMSSSSPPPP____2222PPPPAAAASSSSSSSS____1111 are designed to provide optimal
- results in a 2-pass rendering. Patterns MMMMSSSSPPPP____4444PPPPAAAASSSSSSSS____0000 through MMMMSSSSPPPP____4444PPPPAAAASSSSSSSS____3333
- provide optimal results in a 4-pass rendering. In both cases, the images
- resulting from each pass should be accumulated with equal weights.
-
- mspattern should be changed only between complete rendering passes. It
- should not be changed between the time clear/czclear is called and the
- time that the rendered image is complete.
-
- mmmmssssppppaaaatttttttteeeerrrrnnnn selects the appropriate sample locations as a function of the
- number of samples in the current multisample buffer. The configuration
- of the multisample buffer should not be changed during the accumulation
- of a single image.
-
- mmmmssssppppaaaatttttttteeeerrrrnnnn is ignored when the multisample buffer is not enabled.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- This example configures the framebuffer with both a multisample buffer
- and an accumulation buffer.
-
- RGBmode();
- doublebuffer();
- acsize(12);
- mssize(4,32,0);
- gconfig();
- lsetdepth(getgconfig(GC_MS_ZMAX),getgconfig(GC_MS_ZMIN));
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmssssppppaaaatttttttteeeerrrrnnnn((((3333GGGG)))) mmmmssssppppaaaatttttttteeeerrrrnnnn((((3333GGGG))))
-
-
-
- zfunction(ZF_GEQUAL);
- zbuffer(TRUE);
- multisample(TRUE);
-
- mspattern(MSP_2PASS_0);
- czclear(0,0);
- /* draw the scene */
- acbuf(AC_CLEAR_ACCUMULATE,1.0);
- mspattern(MSP_2PASS_1);
- czclear(0,0);
- /* draw the scene again */
- acbuf(AC_ACCUMULATE,1.0);
- acbuf(AC_RETURN,0.5);
- swapbuffers();
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- msalpha, msmask, mssize, multisample
-
- NNNNOOOOTTTTEEEE
- IRIS-4D G, GT, GTX, VGX, and VGXT models, the Personal Iris, Indigo
- Entry, Indy, XL, XS, XS24, XZ, Elan and Extreme systems do not support
- mmmmssssppppaaaatttttttteeeerrrrnnnn.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-